package com.dex.youqu.controller;

import com.dex.youqu.common.BaseResponse;
import com.dex.youqu.common.ResultUtils;
import com.dex.youqu.model.domain.User;
import com.dex.youqu.service.IDeepseekService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/deepseek")
public class DeepseekController {

    @Resource
    private IDeepseekService deepseekService;

    @GetMapping("/send")
    public BaseResponse<String> send(String query) {
        return ResultUtils.success(deepseekService.generateResponse(query));
    }
} 